package model;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * VCloudInformation entity. @author MyEclipse Persistence Tools
 */

public class VCloudInformation implements java.io.Serializable {

	// Fields
	SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");

	private Integer id;
	private Integer rank;
	private String topic;
	private String infoContent;
	private Integer faceGroup;
	private String publishTime;
	private Integer isPublic;
	private Integer type;
	private Integer priseNum;
	private Integer browseNum;
	private String schoolid;
	private Integer senduserid;
	private String addtionfile;
	private String userName;
	private String phone;
	private Integer roleid;
	private String userStatus;
	private String name;
	private String roleStatus;
	private String realName;
	private Integer sendstatus;
	private String schoolName;

	// Constructors

	/** default constructor */
	public VCloudInformation() {
	}

	/** minimal constructor */
	public VCloudInformation(Integer id, Integer rank, String topic,
			String infoContent, Integer isPublic, String schoolid,
			Integer senduserid) {
		this.id = id;
		this.rank = rank;
		this.topic = topic;
		this.infoContent = infoContent;
		this.isPublic = isPublic;
		this.schoolid = schoolid;
		this.senduserid = senduserid;
	}

	/** full constructor */
	public VCloudInformation(Integer id, Integer rank, String topic,
			String infoContent, Integer faceGroup, String publishTime,
			Integer isPublic, Integer type, Integer priseNum,
			Integer browseNum, String schoolid, Integer senduserid,
			String addtionfile, String userName, String phone, Integer roleid,
			String userStatus, String name, String roleStatus, String realName,
			Integer sendstatus, String schoolName) {
		this.id = id;
		this.rank = rank;
		this.topic = topic;
		this.infoContent = infoContent;
		this.faceGroup = faceGroup;
		this.publishTime = publishTime;
		this.isPublic = isPublic;
		this.type = type;
		this.priseNum = priseNum;
		this.browseNum = browseNum;
		this.schoolid = schoolid;
		this.senduserid = senduserid;
		this.addtionfile = addtionfile;
		this.userName = userName;
		this.phone = phone;
		this.roleid = roleid;
		this.userStatus = userStatus;
		this.name = name;
		this.roleStatus = roleStatus;
		this.realName = realName;
		this.sendstatus=sendstatus;
		this.schoolName = schoolName;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRank() {
		return this.rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getTopic() {
		return this.topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getInfoContent() {
		return this.infoContent;
	}

	public void setInfoContent(String infoContent) {
		this.infoContent = infoContent;
	}

	public Integer getFaceGroup() {
		return this.faceGroup;
	}

	public void setFaceGroup(Integer faceGroup) {
		this.faceGroup = faceGroup;
	}

	public String getPublishTime() {
		if (this.publishTime != null && !this.publishTime.equals("")) {
			Date date = Timestamp.valueOf(this.publishTime);
			return formatter.format(date).toString();
		}
		return null;
	}

	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getIsPublic() {
		return this.isPublic;
	}

	public void setIsPublic(Integer isPublic) {
		this.isPublic = isPublic;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getPriseNum() {
		return this.priseNum;
	}

	public void setPriseNum(Integer priseNum) {
		this.priseNum = priseNum;
	}

	public Integer getBrowseNum() {
		return this.browseNum;
	}

	public void setBrowseNum(Integer browseNum) {
		this.browseNum = browseNum;
	}

	public String getSchoolid() {
		return this.schoolid;
	}

	public void setSchoolid(String schoolid) {
		this.schoolid = schoolid;
	}

	public Integer getSenduserid() {
		return this.senduserid;
	}

	public void setSenduserid(Integer senduserid) {
		this.senduserid = senduserid;
	}

	public String getAddtionfile() {
		return this.addtionfile;
	}

	public void setAddtionfile(String addtionfile) {
		this.addtionfile = addtionfile;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getUserStatus() {
		return this.userStatus;
	}

	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoleStatus() {
		return this.roleStatus;
	}

	public void setRoleStatus(String roleStatus) {
		this.roleStatus = roleStatus;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	public Integer getSendstatus() {
		return sendstatus;
	}

	public void setSendstatus(Integer sendstatus) {
		this.sendstatus = sendstatus;
	}

}